import os

# a function used to check the given path exists or not, if not exists, create it
def path_validator(path):
    if not os.path.exists(path):
        os.makedirs(path)
    return path
